package com.eastfair.venuebooking.dto;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.eastfair.common.dto.AttachmentFileDTO;
import com.eastfair.core.base.entity.Entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.eastfair.venuebooking.entity.SpacePriceUnit;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import com.eastfair.core.base.entity.SuperEntity;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 实体类
 * 场地表
 * </p>
 *
 * @author linan
 * @since 2023-01-05
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "SpaceUpdateDTO", description = "场地表")
public class SpaceUpdateDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @NotNull(message = "请填写主键", groups = SuperEntity.Update.class)
    private Long id;

    /**
     * 是否启用：1是；0否
     */
    @ApiModelProperty(value = "是否启用：1是；0否")
    private Integer isEnabled;
    /**
     * 是否删除：1是；0否
     */
    @ApiModelProperty(value = "是否删除：1是；0否")
    private Integer isDeleted;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    private Long projectId;
    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    private Long subsystemId;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    private Long tenantId;
    /**
     * 场地名称
     */
    @ApiModelProperty(value = "场地名称")
    @Size(max = 60, message = "场地名称长度不能超过60")
    private String spaceName;
    /**
     * 场地分类id
     */
    @ApiModelProperty(value = "场地分类id")
    private Long spaceCategoryId;
    /**
     * 场地保证金
     */
    @ApiModelProperty(value = "场地保证金")
    private BigDecimal spaceDeposit;
    /**
     * 服务预付款
     */
    @ApiModelProperty(value = "服务预付款")
    private BigDecimal serviceAdvanceCharge;
    /**
     * 计价面积
     */
    @ApiModelProperty(value = "计价面积")
    private Double priceArea;
    /**
     * 建筑面积
     */
    @ApiModelProperty(value = "建筑面积")
    private Double buildArea;
    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    private Integer sort;
    /**
     * 所在位置
     */
    @ApiModelProperty(value = "所在位置")
    @Size(max = 64, message = "所在位置长度不能超过64")
    private String location;
    /**
     * VR地址
     */
    @ApiModelProperty(value = "VR地址")
    @Size(max = 255, message = "VR地址长度不能超过255")
    private String vrUrl;
    /**
     * 图纸数量
     */
    @ApiModelProperty(value = "图纸数量")
    private Integer attachmentCount;
    /**
     * 多个标签","隔开
     */
    @ApiModelProperty(value = "多个标签\",\"隔开")
    @Size(max = 255, message = "多个标签\",\"隔开长度不能超过255")
    private String tag;
    /**
     * 容纳人数
     */
    @ApiModelProperty(value = "容纳人数")
    private Integer capacity;

    @ApiModelProperty(value = "展厅计价方式")
    List<SpacePriceUnit> spacePriceUnitList;

    @ApiModelProperty(value = "展厅图纸url")
    List<AttachmentFileDTO> attachmentFileDTOList;
    @ApiModelProperty(value = "标签集合")
    List<TagUpdateDTO> tagUpdateDTOList;

    /**
     * 场地编码
     */
    @ApiModelProperty(value = "场地编码")
    @Size(max = 255, message = "场地编码长度不能超过255")
    private String spaceCode;
    /**
     * 同步状态：1已同步；0未同步
     */
    @ApiModelProperty(value = "同步状态：1已同步；0未同步")
    private Integer syncState;

    /**
     * 修改校验标识
     */
    public interface Update{};
}
